package com.canyou.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.canyou.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单
 * </p>
 *
 * @author canyou
 * @since 2019-05-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_menu")
@ApiModel(value="Menu对象", description="菜单")
public class Menu extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("上级菜单id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty("菜单/按钮名称")
    @TableField("title")
    private String title;

    @ApiModelProperty("菜单URL")
    @TableField("url")
    private String url;

    @ApiModelProperty("权限标识")
    @TableField("permission")
    private String permission;

    @ApiModelProperty("图标")
    @TableField("icon")
    private String icon;

    @ApiModelProperty("菜单类型（0菜单  1 按钮(弹出)  2按钮(新开)）")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("菜单排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("描述")
    @TableField("remark")
    private String remark;

}
